
let hd = { name: "hd" };
let parent = {
  name: "parent",
  show() {
    console.log("parent method:" + this.name);
  }
};

// Object.setPrototypeOf(obj, prototype)
Object.setPrototypeOf(hd, parent);

hd.show()
parent.show()

console.log(Object.getPrototypeOf(hd))


